home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- if(_root.gameOn == 1)
- {
- _root.hitPlayer(this.hitMe);
- if(isNegative == 0 && _root.negativeColor == 1)
- {
- myColor.negative();
- isNegative = 1;
- }
- if(isNegative == 1 && _root.negativeColor == 0)
- {
- myColor.setTransform(_root.orig1);
- isNegative = 0;
- }
- _X = _X - _root.groundSpeed;
- if(_X < -260)
- {
- removeMovieClip(this);
- }
- if(this._x <= 650 && this.dupeOnce == 1 && _root.phase != 4)
- {
- this.duplicateMovieClip("ground" + _root.groundCount,_root.i + 5000);
- _root["ground" + _root.groundCount]._y = this._y;
- _root["ground" + _root.groundCount]._x = this._width / 1.15 + this._x - 10;
- _root["ground" + _root.groundCount]._height = random(_root.groundHeightAdd) + _root.groundHeightMin;
- _root.i = _root.i + 1;
- this.dupeOnce = 0;
- _root.groundCount = _root.groundCount + 1;
- }
- }
- }
-